/****************************************************
 *
 * 项目名称：  dbInstance
 * All rights Reserved, Designed By 投资交易团队
 * @Copyright:2016-2021
 *
 ********************************************************/

package mockInstance;

import com.heroh.db.DbConfig;

/**
 * 包名称： dbInstance
 * 类名称：DBInstance
 * 类描述：TODO
 * 创建人：@author shengxiong.jian
 * 创建时间：2021/3/8/11:12
 */
public class DBInstance {

    public static DbConfig devdb107(){
        return new DbConfig.Builder()
                .setDriver("com.mysql.jdbc.Driver")
                .setUrl("jdbc:mysql://192.168.0.107:3307/devdb?useUnicode=true&characterEncoding=utf8&useSSL=false&allowMultiQueries=true")
                .setUser("root")
                .setPassword("123456")
                .build();
    }

    public static DbConfig devdb11(){
        return new DbConfig.Builder()
                .setDriver("com.mysql.jdbc.Driver")
                .setUrl("jdbc:mysql://192.168.221.11:3306/devdb?useUnicode=true&characterEncoding=utf8&useSSL=false&allowMultiQueries=true")
                .setUser("root")
                .setPassword("root123")
                .build();
    }

    public static DbConfig smartLocal(){
        return new DbConfig.Builder()
                .setDriver("com.mysql.jdbc.Driver")
                .setUrl("jdbc:mysql://localhost:3306/smart_code_times?useUnicode=true&characterEncoding=utf8&useSSL=false&allowMultiQueries=true")
                .setUser("root")
                .setPassword("123456")
                .build();
    }
}
